package tagSystem;


/**
 * beans of tagging algorithm
 * @author ran
 *
 */
public class TagAlgorithm {
	private String algoName;
	private Class algorithm;
	private int valid;
	/**
	 * Default constructor of class
	 */
	public TagAlgorithm() {

	}
	//getters and setters
	public String getAlgoName() {
		return algoName;
	}
	public void setAlgoName(String algoName) {
		this.algoName = algoName;
	}

	public Class getAlgorithm() {
		return algorithm;
	}
	public void setAlgorithm(Class algorithm) {
		this.algorithm = algorithm;
	}
	public int getValid() {
		return valid;
	}
	public void setValid(int valid) {
		this.valid = valid;
	}
	@Override
	public boolean equals(Object obj) {
		TagAlgorithm other = (TagAlgorithm) obj;
		System.out.println("answer: "+other.getAlgoName().equals(this.algoName));
		return other.getAlgoName().equals(this.algoName);
	}


}
